﻿function addMemberPayout(Userid,Iftb,Enjoytype,ColumnID,ColumnName,ColumnInfoID,ColumnInfoName) {
    var url = "http://" + location.host + "/common/agent/addCharge.jsp?userid="+Userid+"&iftb=" + Iftb +"&enjoytype=" + Enjoytype +"&ColumnID=" + ColumnID + "&ColumnName=" + ColumnName + "&ColumnInfoID=" + ColumnInfoID+ "&ColumnInfoName=" + ColumnInfoName +"&jtime=" + (new Date()).getTime();
    XmlHttpPool.GetRemoteData(url, addPayout);
   
}


function addPayout(data) {		
	if (data.indexOf("-1")>=0) {
		alert("您的有效期已过，请续费后再访问");
		window.location='http://www.tech110.net/member/pay.php';
	} 
	if (data.indexOf("-3")>=0) {
		alert("您的余额不足,请先充值付费再访问");
		window.location='http://www.tech110.net/member/pay.php';
	} 
	if (data.indexOf("-4")>=0) {
		alert("您查看的成果不在您所包库的范围内,无权查看该条成果的详细信息!");
		history.back(1); 
	} 
	if (data.indexOf("-5")>=0) {
		alert("您的余额不足");
		return;
	} 
       
	
}
